LinuxBuild {
    DEFINES += HAVE_QT_X11 HAVE_QT_EGLFS HAVE_QT_WAYLAND
} else:MacBuild {
    DEFINES += HAVE_QT_MAC
} else:iOSBuild {
    DEFINES += HAVE_QT_IOS
} else:WindowsBuild {
    DEFINES += HAVE_QT_WIN32 HAVE_QT_QPA_HEADER
    LIBS += opengl32.lib user32.lib
} else:AndroidBuild {
    DEFINES += HAVE_QT_ANDROID
}

#SOURCES += \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.cc \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqsgtexture.cc \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.cc \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.cc \
#    libs/qmlglsink/gst-plugins-good/ext/qt/qtwindow.cc \
#    libs/qmlglsink/gst-plugins-good/ext/qt/qtitem.cc

#HEADERS += \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqsgtexture.h \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtgl.h \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.h \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.h \
#    libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.h \
#    libs/qmlglsink/gst-plugins-good/ext/qt/qtwindow.h \
#    libs/qmlglsink/gst-plugins-good/ext/qt/qtitem.h

HEADERS += \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/aalib/gstaasink.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/aalib/gstaatv.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqsgtexture.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtgl.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/qtitem.h \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/qtwindow.h

SOURCES += \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/aalib/gstaasink.c \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/aalib/gstaatv.c \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstplugin.cc \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqsgtexture.cc \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtglutility.cc \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsink.cc \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/gstqtsrc.cc \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/qtitem.cc \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/qtwindow.cc

DISTFILES += \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/aalib/meson.build \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/meson.build

SUBDIRS += \
    $$PWD/libs/qmlglsink/gst-plugins-good/ext/qt/qtplugin.pro



